package cn.javasm.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;

/**
 * @version: 0.1
 */
public class User {
    @ExcelProperty("用户id")
    private Integer id;

    @ExcelProperty("用户名称")
    private String name;

    @ExcelProperty("用户年龄")
    private Integer age;

    @ExcelIgnore
    private String email;

    private Integer price;

    public User() {
        System.out.println("无参构造执行了");
    }

    public User(Integer id, String name, Integer age, String email, Integer price) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.email = email;
        this.price = price;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", email='" + email + '\'' +
                ", price=" + price +
                '}';
    }
}
